﻿<template>
  <el-form label-position = 'top'>
    <el-form-item label = '页面(模板)名称:'>
      <el-input disabled v-model = 'pageConfig.name'></el-input>
    </el-form-item>
    <el-form-item label = '页面大小(弹窗页面时):'>
      <el-input-number v-model = "pageConfig.width" :min = "40" :max = "90" :step = '1' size = 'small'></el-input-number>
    </el-form-item>
    <el-form-item label = "标签对齐方式:">
      <el-radio-group v-model = "pageConfig.labelPosition" size = 'small'>
        <el-radio-button label = "left">左对齐</el-radio-button>
        <el-radio-button label = "right">右对齐</el-radio-button>
        <el-radio-button label = "top">顶部对齐</el-radio-button>
      </el-radio-group>
    </el-form-item>
    <el-form-item label = "表单label宽度:">
      <el-input-number size = 'small' v-model = "pageConfig.labelWidth" :min = "0" :max = "260" :step = "5"></el-input-number>
    </el-form-item>
  </el-form>
</template>

<script>
export default {
  props: ['pageConfig']
}
</script>
